package com.molin.IOtest.charstreamTest.buffered;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\IdeaProjects\\BasicCode\\mIdeaTest\\src\\com\\molin\\IOtest\\charstreamTest\\a.txt"));
        bw.write("沫林程序员666");
        bw.newLine();
        bw.write("abcdef");
        bw.newLine();
        bw.write("---------");
        bw.flush();
        bw.close();
    }
}
